﻿using System;

namespace diantou.web.ajax.enterprise
{
    /// <summary>
    /// 工作职位
    /// </summary>
    [fastCSharp.code.cSharp.ajax(IsPool = true)]
    class job : permissionHandle<job>
    {
        /// <summary>
        /// 添加工作职位
        /// </summary>
        /// <param name="value"></param>
        /// <param name="onReturn"></param>
        public void Append(diantou.examDataAccess.enterpriseJob value, Action<fastCSharp.net.returnValue<int>> onReturn)
        {
            value.UserId = currentUser.Id;
            diantou.examDataAccess.tcpCall.enterpriseJob.append(value, onReturn);
        }
        /// <summary>
        /// 修改工作职位
        /// </summary>
        /// <param name="value"></param>
        /// <param name="onReturn"></param>
        public void Rework(fastCSharp.emit.memberMapValue<diantou.dataModel.enterpriseJob, diantou.examDataAccess.enterpriseJob> value, Action<fastCSharp.net.returnValue<bool>> onReturn)
        {
            diantou.examDataAccess.tcpCall.enterpriseJob.rework(value, currentUser.Id, onReturn);
        }
        /// <summary>
        /// 修改工作职位状态
        /// </summary>
        /// <param name="id"></param>
        /// <param name="status"></param>
        /// <param name="onReturn"></param>
        public void ReworkStatus(int id, diantou.dataModel.enterpriseJob.status status, Action<fastCSharp.net.returnValue<bool>> onReturn)
        {
            diantou.examDataAccess.tcpCall.enterpriseJob.reworkStatus(id, status, currentUser.Id, onReturn);
        }
    }
}
